package com.liang.drug.mapstruct;

import com.liang.drug.dto.RegisterDTO;
import com.liang.drug.entity.User;
import org.mapstruct.factory.Mappers;

/**
 * Created with Intellij IDEA
 *
 * @Auther: liangjy
 * @Date: 2022/01/12/16:33
 * @Description:
 */
public class MapStructMapper implements OrderMapper{
    UtilStruct mapper = Mappers.getMapper(UtilStruct.class);
    @Override
    public User convert(RegisterDTO registerDTO) {
        return mapper.convert(registerDTO);
    }

}
